package ${poPkg};

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

<#if poImportPkgs??>
<#list poImportPkgs as importPkg>
import ${importPkg};
</#list>
</#if>

${(remark)!""}
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="${tableName}")
public class ${poName} implements Serializable {
    private static final long serialVersionUID = -${poSerialVersionUID}L;

	<#list fields as field>
	${(field.remark)!""}
	<#if field.column == 'id'>
    @TableId(value = "id", type = IdType.AUTO)
    </#if>
	private ${field.javaType} ${field.fieldName};
	</#list>

}